<?php
namespace PFBC;

abstract class OptionElement extends Element {
	protected $options;
        protected $style;
        protected $matrix;
        //protected $name;
	public function __construct($label, $name, array $options, array $properties = null,$style = null,$matrix = 0) {
                $this->style = $style;
		$this->options = $options;
                $this->matrix = $matrix;
                //$this->name = $name;
		if(array_values($this->options) === $this->options)
			$this->options = array_combine($this->options, $this->options);

		parent::__construct($label, $name, $properties,$style);
	}
}
